package blog.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

/**
 * 博文实体类
 */
public class BlogContent {
  /**
   * 博文id
   */
  private Integer id;
  /**
   * 博文标题
   */
  private String blogTitle;
  /**
   * 博文描述
   */
  private String blogDescribe;
  /**
   * 博文正文
   */
  private String content;
  /**
   * 发布时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private LocalDateTime createTime;

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getBlogTitle() {
    return blogTitle;
  }

  public void setBlogTitle(String blogTitle) {
    this.blogTitle = blogTitle;
  }

  public String getBlogDescribe() {
    return blogDescribe;
  }

  public void setBlogDescribe(String blogDescribe) {
    this.blogDescribe = blogDescribe;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }
}
